<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        const person = {
            name: ["Bob", "Smith"],
            age: 32,
            "bio": function() {
                console.log(`${this.name[0]} ${this.name[1]} 现在 ${this.age} 岁了。`)
            },
            introduceSelf: function() {
                console.log(`你好，我是 ${this.name[0]}。`)
            }
        }

        console.log(person["name"])
        console.log(person.name)
        console.log(person.name.push("Alice"))
        console.log(person["b"] = "x")

        const personNew = {
            name: ["Bob", "Smith"],
            age: 32,
            bio () {
                console.log(`${this.name[0]} ${this.name[1]} 现在 ${this.age} 岁了。`)
            },
            introduceSelf: function() {
                console.log(`你好，我是 ${this.name[0]}。`)
            }
        }
    </script>
    
</body>
</html>